Smooth Scan: One Access Path to Rule Them All
نویسندگان
چکیده
Query optimizers depend heavily on statistics to create good query plans. In many cases, though, statistics are outdated or non-existent, and the process of creating or refreshing statistics is very expensive, especially for ad-hoc workloads on ever bigger data. This results in suboptimal plans that severely hurt performance. The main problem is that the decision once made by the optimizer is fixed throughout the execution of a query. In particular, each logical operator translates into a fixed choice of a physical operator at run-time. In this paper we take a departure from this traditional logic, by proposing continuous adaptation and morphing of physical operators throughout their lifetime, by adjusting their behavior in accordance with the statistical properties of the data. We demonstrate the benefits of the new paradigm by designing and implementing an adaptive access path operator called Smooth Scan, which morphs continuously within the space of traditional index access and full table scan. Smooth Scan behaves similarly to an index scan for low selectivity; if selectivity increases as we process more data, however, Smooth Scan progressively morphs its behavior into sequential scan. As a result, a system with Smooth Scan requires no optimization decisions up front nor does it need accurate statistics to provide good performance. We implement Smooth Scan in PostgreSQL and, using both synthetic benchmarks as well as TPC-H, we show that it achieves robust performance while at the same time being statistics-oblivious.
منابع مشابه
Is a negative cranial CT-scan adequate to support a diagnosis of pseudotumor cerebri
In a patient with features indicating the presence of pseudotumor cerebri, a negative cranial CT-scan is not adequate to rule out less benign pathology and an MRI of brain should be performed. In this study, a 10-year old boy with daily headaches for one month and diplopia for one week was found to have a partial abducens palsy and bilateral papilledema; otherwise, his examination was normal. A...
متن کاملIs a negative cranial CT-scan adequate to support a diagnosis of pseudotumor cerebri
In a patient with features indicating the presence of pseudotumor cerebri, a negative cranial CT-scan is not adequate to rule out less benign pathology and an MRI of brain should be performed. In this study, a 10-year old boy with daily headaches for one month and diplopia for one week was found to have a partial abducens palsy and bilateral papilledema; otherwise, his examination was normal. A...
متن کاملRule-based of Monetary Policy in Iran Inspired by McCallum Rule
Economists have reached a consensus that an independent central bank could improve its policy efficiency by following a monetary policy rule. One of the important rules is McCallum rule where that requires central banks to target the growth rate of nominal GDP using the monetary base as its instrument. One of the features of the McCallum rule uses the monetary base rather than the interest rate...
متن کاملThe Value of Radioisotopic Liver and Spleen Scan in Visceral Larva Migrans
Recently the incidence of visceral Jarva migrans has increased in the northern states of Iran. Eight infected patients either from northern states of with a history of the trip to these states, were evaluated in Taleghani Hospital, Shaheed Beheshti University with chief complaints of mild fever, malaise, anorexia, weight loss, hypochondria! pain. High level eosinophilia (more than 20%) in all o...
متن کاملA Critical Study on the Theories of Environmental Ethics With the Rule of Basit al-Haqiqah
A philosophical rule which is of prime importance in transcendent wisdom is the rule expressed as “ basit ul-haqiqah koll ul-ashya wa laysat bi shayin minha, the simple truth is all things and, at the same time, it is none of them”. Although the philosophical rule is essentially for adducing the unity of God, it has other applications which could be obtained through enumerating its latent featu...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2014